//
//  ZXFooterView.m
//  ZXOCWeiBo
//
//  Created by mac on 15/12/5.
//  Copyright © 2015年 itcast. All rights reserved.
//

#import "ZXFooterView.h"

@interface ZXFooterView()

@property (weak, nonatomic) IBOutlet UILabel *label;

@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *indicator;

@end


@implementation ZXFooterView

/**
 *  加载底部View
 */
+(instancetype)footerView
{
    return [NSBundle loadViewFromNibName:@"ZXFooterView"];
}

-(void)setLoading:(BOOL)loading
{
    _loading = loading;
    
    if (loading) {
        self.label.text = @"正在加载中。。。。";
        [self.indicator startAnimating];
    }
    else
    {
        self.label.text = @"上啦加载更多。。。";
        [self.indicator stopAnimating];
    }
}

@end
